package com.hanry.communication;

import com.hanry.communication.bluetooth.BluetoothClient;
import com.hanry.communication.wifi.WifiClient;

public class CommunicationManager {

	public static final int BLUETOOTH_CONNECT = 0;
	public static final int WIFI_CONNECT = 1;

	public static CommunicationHandle getCommunication(int connectType) {
		if(connectType == CommunicationManager.BLUETOOTH_CONNECT){
			return new BluetoothClient();
		}else if(connectType == CommunicationManager.WIFI_CONNECT){
			return new WifiClient();
		}
		return null;
	}
}
